package com.biostime.qdingding.modules.qd.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.qdingding.common.service.CrudService;
import com.biostime.qdingding.modules.qd.dao.MemberCouponDao;
import com.biostime.qdingding.modules.qd.entity.MemberCoupon;

/**
 * 普通课程Service
 * @author king
 * @version 2016-02-17
 */
@Service
@Transactional(readOnly = true)
public class MemberCouponService extends CrudService<MemberCouponDao, MemberCoupon> {

	public boolean used(int memberCounponId, int used) {
		return dao.used(memberCounponId, used);

	}
	
	public List<MemberCoupon> findGiftByMemberId(MemberCoupon memberCoupon){
		return dao.findGiftByMemberId(memberCoupon);
	}

	public int getCount(MemberCoupon memberCoupon) {
		// TODO Auto-generated method stub
		return dao.getCount(memberCoupon);
	}
	
}
